Optimal. Leaf size=62 \[ \frac{x}{4 a c^2 \left (a^2 x^2+1\right )}-\frac{\tan ^{-1}(a x)}{2 a^2 c^2 \left (a^2 x^2+1\right )}+\frac{\tan ^{-1}(a x)}{4 a^2 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.041147, antiderivative size = 62, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {4930, 199, 205} \[ \frac{x}{4 a c^2 \left (a^2 x^2+1\right )}-\frac{\tan ^{-1}(a x)}{2 a^2 c^2 \left (a^2 x^2+1\right )}+\frac{\tan ^{-1}(a x)}{4 a^2 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4930
Rule 199
Rule 205
Rubi steps
\begin{align*} \int \frac{x \tan ^{-1}(a x)}{\left (c+a^2 c x^2\right )^2} \, dx &=-\frac{\tan ^{-1}(a x)}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\int \frac{1}{\left (c+a^2 c x^2\right )^2} \, dx}{2 a}\\ &=\frac{x}{4 a c^2 \left (1+a^2 x^2\right )}-\frac{\tan ^{-1}(a x)}{2 a^2 c^2 \left (1+a^2 x^2\right )}+\frac{\int \frac{1}{c+a^2 c x^2} \, dx}{4 a c}\\ &=\frac{x}{4 a c^2 \left (1+a^2 x^2\right )}+\frac{\tan ^{-1}(a x)}{4 a^2 c^2}-\frac{\tan ^{-1}(a x)}{2 a^2 c^2 \left (1+a^2 x^2\right )}\\ \end{align*}
Mathematica [A] time = 0.0283901, size = 39, normalized size = 0.63 \[ \frac{\left (a^2 x^2-1\right ) \tan ^{-1}(a x)+a x}{4 a^2 c^2 \left (a^2 x^2+1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 57, normalized size = 0.9 \begin{align*}{\frac{x}{4\,a{c}^{2} \left ({a}^{2}{x}^{2}+1 \right ) }}+{\frac{\arctan \left ( ax \right ) }{4\,{a}^{2}{c}^{2}}}-{\frac{\arctan \left ( ax \right ) }{2\,{a}^{2}{c}^{2} \left ({a}^{2}{x}^{2}+1 \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.59456, size = 80, normalized size = 1.29 \begin{align*} \frac{\frac{x}{a^{2} c x^{2} + c} + \frac{\arctan \left (a x\right )}{a c}}{4 \, a c} - \frac{\arctan \left (a x\right )}{2 \,{\left (a^{2} c x^{2} + c\right )} a^{2} c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65179, size = 85, normalized size = 1.37 \begin{align*} \frac{a x +{\left (a^{2} x^{2} - 1\right )} \arctan \left (a x\right )}{4 \,{\left (a^{4} c^{2} x^{2} + a^{2} c^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.04451, size = 107, normalized size = 1.73 \begin{align*} \begin{cases} \frac{a^{2} x^{2} \operatorname{atan}{\left (a x \right )}}{4 a^{4} c^{2} x^{2} + 4 a^{2} c^{2}} + \frac{a x}{4 a^{4} c^{2} x^{2} + 4 a^{2} c^{2}} - \frac{\operatorname{atan}{\left (a x \right )}}{4 a^{4} c^{2} x^{2} + 4 a^{2} c^{2}} & \text{for}\: c \neq 0 \\\tilde{\infty } \left (\frac{x^{2} \operatorname{atan}{\left (a x \right )}}{2} - \frac{x}{2 a} + \frac{\operatorname{atan}{\left (a x \right )}}{2 a^{2}}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16595, size = 77, normalized size = 1.24 \begin{align*} \frac{x}{4 \,{\left (a^{2} x^{2} + 1\right )} a c^{2}} + \frac{\arctan \left (a x\right )}{4 \, a^{2} c^{2}} - \frac{\arctan \left (a x\right )}{2 \,{\left (a^{2} c x^{2} + c\right )} a^{2} c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]